package com.buaa.pm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buaa.pm.entity.Paper;
import com.buaa.pm.entity.Project;
import com.buaa.pm.model.PageModel;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PaperService extends IService<Paper> {

    void upload(String projectId, MultipartFile[] files);

    PageModel<Paper> pagePaper(String projectId, int pageNum, int pageSize);

    boolean removePapers(List<String> ids);

    List<Paper> listFinishPaperByProject(String projectId);

    Paper getPaperById(String id);

    Project quickStart(MultipartFile[] files);

    List<Paper> listPaperByProject(String projectId);

}
